﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Model;

namespace BLL
{
   public class RoleCompare:IEqualityComparer<OA_Role>
    {
       public bool Equals(OA_Role x, OA_Role y)
       {

           if (x.Name == y.Name)
               return true;
           else
               return false;

       }

        public int GetHashCode(OA_Role obj)
        {
            return 1;
        }
    }
}
